package com.core.androidlearndemo.livedata;

import android.arch.lifecycle.MutableLiveData;
import android.arch.lifecycle.ViewModel;

public class NameViewModel extends ViewModel {

    private MutableLiveData<String> mutableLiveData;

    public MutableLiveData<String> getMutableLiveData(){
        if (mutableLiveData==null){
            mutableLiveData = new MutableLiveData<>();
        }
        return mutableLiveData;
    }
}
